﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="timkiemtintuc.aspx.cs" Inherits="WebHousingInfo.timkiemtintuc" %>

<%@ Register Src="~/Controls/Header.ascx" TagName="HD" TagPrefix="Header" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MN" TagPrefix="MenuFooter" %>
<%@ Register Src="~/Controls/Footer.ascx" TagName="FT" TagPrefix="Footer" %>
<%@ Register Src="~/Controls/NoiThat.ascx" TagName="NT" TagPrefix="NoiThat" %>
<%@ Register Src="~/Controls/TimKiem_DienDan.ascx" TagName="TK" TagPrefix="TimKiem" %>
<%@ Register Src="~/Controls/DanhMucNhaChoThue.ascx" TagName="CT" TagPrefix="DanhMucNhaChoThue" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Kết quả tìm kiếm tin tức tổng hợp</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="uni_wrapper">        
        <Header:HD ID="Header" runat="server" />
        <div id="uni_main">
             <div id="content" class="clearfix">
                 
                 <div id="group_750_l">
                    
                 <div class="box02_title">
					<table cellspacing="5" cellpadding="1" border="0">
						<tbody>
						    <tr valign="bottom">
							    <td width="100%">
								    <span class="navbar"><a href="Home.aspx">Trang Chủ</a> >> <a href="XemThemTinTuc.aspx?idcate=4" accesskey="1">Tin tức</a></span>   
							    </td>
						    </tr>
					    </tbody>
					</table>
				</div>				
				<% var ObForum = SearchResult_News(); %>
				<p style="padding:10px; color: Black; font-family:Arial; font-size:14px; font-weight:bold;"><% if (ObForum != null && ObForum.Count > 0)
                                                                                                   { %>Tìm được tổng cộng <%=gettotalpage() %> bài viết với từ khoá "<span style="color:Blue; font-weight:bold;"><%=Session["TimKiemTinTuc"].ToString()%></span>".<%}
                                                                                                   else
                                                                                                   { %>
                                                                                                    Không tìm thấy bài viết nào. Bạn hãy thử lại với từ khoá khác.
                                                                                                   <%} %></p>
		        <div id="ketquatimkiem" class="clearfix">
		            <% if(ObForum != null && ObForum.Count > 0) {
                     foreach(var detail in ObForum) {  %>
		                <p class="ketquatimkiem_diendan">►<a href="ChiTietTinTuc.aspx?idnews=<%=detail.NewsID %>&idcate=<%=detail.CategoryID %>"><%=detail.Title %></a></p>
		            <%} } %>
		        </div>
		        <% if(ObForum != null && ObForum.Count > 0) { %>
		        <div id="link">
			        <asp:Label ID="lblpaging" runat="server" Text=""></asp:Label>
		        </div>
		        <%} %>
		        </div>
		            <div id="group_5">
			            <DanhMucNhaChoThue:CT ID="DanhMucNhaChoThue" runat="server" />
			            <NoiThat:NT ID="NoiThat" runat="server" />
		            </div>
            </div>
        </div>
         <MenuFooter:MN ID="MenuFooter" runat="server" />
         <Footer:FT ID="Footer" runat="server" />
    </div>
    </form>
</body>
</html>